package org.csc.gateway.config;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@Getter
@RefreshScope
@Component
public class Config {

    @Value("${gateway.journal.enabled}")
    private Boolean journalEnabled;

    @Value("${gateway.current-limiting.enabled}")
    private Boolean currentLimitingEnabled;

    @Value("${gateway.current-limiting.ip}")
    private Boolean currentLimitingIp;

    @Value("${gateway.current-limiting.url}")
    private Boolean currentLimitingUrl;

    @Value("${gateway.current-limiting.user}")
    private Boolean currentLimitingUser;

}
